﻿using System;
using Microsoft.Extensions.DependencyInjection;
using Service.Domain.Factories.User;
using Service.Domain.Interfaces.DomainService;
using Service.Domain.Interfaces.Factories;
using Service.Domain.Services;

namespace Service.API
{
    public static class DomainServiceExtensions
    {
        public static void UseDomain(this IServiceCollection services)
        {
            services.AddSingleton<IUserService, UserService>();
            services.AddSingleton<IUserFactory, UserFactory>();
        }
    }
}
